package cn.edu.zut.service;

import cn.edu.zut.domain.Message;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MessageService {

    public List<Message> findByUserId(String userId);

    public void add(Message message);

    public void deleteById(int _id);

    public Message findById(int _id);

    public void update(Message message);

    public List<Message> findAllNoVis(String userId,String vis);

    public int findEmptyMessageId();
}
